﻿using System.Diagnostics.Contracts;

namespace Utility.Paging
{
	public class PagingParameters
	{
		public int PageIndex { get; set; }
		public int PageSize { get; set; }
		public int? TotalCount { get; set; }

		public PagingParameters(int pageIndex, int pageSize)
		{
			Contract.Requires(pageIndex >= 0);
			Contract.Requires(pageSize > 0);

			PageIndex = pageIndex;
			PageSize = pageSize;
		}
	}
}